package com.zxl.feign;

import com.zxl.vo.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(
        value = "esearch",
        path = "/es"
)
public interface EsFeign {

    @RequestMapping("/save")
    String save(@RequestBody List<Goods> goods) throws Exception ;

}
